{% extends "inventory/base.html" %}
{% load crispy_forms_tags %}

{% block title %}{{ form_title }}{% endblock %}

{% block content %}
<div class="container">
    <div class="row justify-content-center">
        <div class="col-md-8">
            <div class="card">
                <div class="card-header">
                    <h2 class="h4 mb-0">{{ form_title }}</h2>
                </div>
                <div class="card-body">
                    <form method="post">
                        {% csrf_token %}
                        {{ form|crispy }}
                        <div class="d-flex justify-content-between mt-4">
                            <a href="{% url 'inventory_check_list' %}" class="btn btn-outline-secondary">返回</a>
                            <button type="submit" class="btn btn-primary">{{ submit_text }}</button>
                        </div>
                    </form>
                </div>
                <div class="card-footer">
                    <div class="small text-muted">
                        <p>
                            <i class="bi bi-info-circle"></i>
                            库存盘点会将系统中所有商品及其当前库存记录下来，便于与实际库存进行比对。
                        </p>
                        <p>
                            如果只想盘点特定分类的商品，请选择相应的商品分类。
                        </p>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
{% endblock %} 